{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "e9735fe0-f1ac-430f-826e-f95396666501",
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/usr/lib/python3.12/site-packages/numpy/_core/getlimits.py:551: UserWarning: Signature b'\\x00\\xd0\\xcc\\xcc\\xcc\\xcc\\xcc\\xcc\\xfb\\xbfe\\x99\\x00\\x00\\x00\\x00' for <class 'numpy.longdouble'> does not match any known type: falling back to type probe function.\n",
      "This warnings indicates broken support for the dtype!\n",
      "  machar = _get_machar(dtype)\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<html>\\(\\displaystyle 6.62607015 \\times 10^{-34}\\)</html>"
      ],
      "text/latex": [
       "$\\displaystyle 6.62607015 \\times 10^{-34}$"
      ],
      "text/plain": [
       "6.62607015e-34"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<html>\\(\\displaystyle 1.602176634 \\times 10^{-19}\\)</html>"
      ],
      "text/latex": [
       "$\\displaystyle 1.602176634 \\times 10^{-19}$"
      ],
      "text/plain": [
       "1.602176634e-19"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<html>\\(\\displaystyle 299792458.0\\)</html>"
      ],
      "text/latex": [
       "$\\displaystyle 299792458.0$"
      ],
      "text/plain": [
       "299792458.0"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "(6.62607015e-34, 'J Hz^-1', 0.0)"
      ]
     },
     "execution_count": 1,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 物理常数调用\n",
    "from scipy import constants as const\n",
    "show(const.h)\n",
    "show(const.e)\n",
    "show(const.c)\n",
    "# 这里可以看更多\n",
    "const.physical_constants[\"Planck constant\"]"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "SageMath 10.5",
   "language": "sage",
   "name": "sagemath"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.12.7"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
